package com.czy.booktest02.demos.pojo.po;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("user")
public class User {
    private int id;
    private String name;
    private String password;
    private String realName;
    private int gender;
    private String email;
    private Date registrationDate;
    private int permission;
    private int status;
    private String salt;

    public void setGender(String gender) {
        if(gender.equals("男")){
            this.gender=1;
        }else {
            this.gender=2;
        }
    }
    public void setGender(int gender){
        this.gender=gender;
    }
}
